package com.cmc.cloud.cmclink.doc.api.document;

import com.cmc.cloud.cmclink.doc.api.document.rep.AgentContactBaseDto;
import com.cmc.cloud.cmclink.doc.api.document.req.AgentContactReqDto;
import com.cmc.cloud.cmclink.doc.constant.DocApiConstants;
import com.cmes.framework.common.pojo.CommonResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.List;

/**
 * RPC 接口
 * @author lzp
 */
@FeignClient(name = DocApiConstants.NAME)
@Tag(name = "RPC 服务 - 进出口联系人")
public interface AgentContactApi {
    String PREFIX = DocApiConstants.PREFIX + "/agent";


    /**
     * 进出口联系人查询
     *
     * @param agentContactReqDto
     * @return
     */
    @PostMapping(PREFIX + "/query")
    @Operation(summary = "进出口联系人查询")
    CommonResult<List<AgentContactBaseDto>> personPage(@Valid @RequestBody AgentContactReqDto agentContactReqDto);
}
